home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 3
/
Cream of the Crop 3.iso
/
comm
/
awutil.zip
/
AWUTILS.DOC
< prev
next >
Wrap
Text File
|
1993-07-17
|
4KB
|
80 lines
DOCUMENTATION for AWUTILS
All programs are (C)Copyright 1993, by Donald Reiher, but are freeware.
These Utilities are supplied by:
Donald Reiher Computer Support, Newtown Square, PA
Any support is via my BBS 215-356-7932 (24 hour)
Sorry, no voice support on freebies!
Here are some utilities which I desparately needed for a client
and which I could not find help with. For those who are experienced
AL programmers, this code probably looks crude, but like I said,
I could find no help with this, and I normally stay away from MASM.
These utilities have been tested on every machine available to me
but there are no guarantees that they will work on every possible
combination of hardware & TSR's.
AW.EXE
The first program is AW.EXE. This program checks to see if
PCAnywhere 4.5 AWHOST is running on a machine, and then returns
a message and a DOS Errorlevel. I use this for a batch file
which displays one menu while AWHOST is running and another
when it is not. The user can immediately see the status of
AWHOST at the top of their batch file menu.
The Errorlevels are:
0 - AWHOST is not loaded
1 - AWHOST is loaded and is in wait, automatic or hot-key mode
AWZAP.EXE
One of the handiest utilities in PCAnywhere III was the
AWCANCEL program. For some reason it was not included in
PCAnywhere IV.
This program performs a PCAnywhere host cancel from the DOS
prompt. It will not work while AWHOST is active, only while
it is resident, and inactive. It also returns DOS Errorlevels
when exiting. I use this on my AWHOST batch menu to cancel
the program and return the workstation back to normal state,
without having to manually unload AWHOST, and then reload the
modem sharing software, and make the modem available for the whole
network again. Now the whole procedure is done with one menu call
with a batch file.
The errorlevels are
0 - Success!
1 - AWZAP could not deallocate memory, probably due to a TSR loaded
after AWHOST.
2 - AWZAP could not restore all the interrupt vectors, probably
due to a TSR loaded after AWHOST.
3 - AWZAP could not unload PCAnywhere because it detected there
was an active connection.
4 - AWHOST was not detected as being resident, no action taken.
CHKMOD1,2,3,4.COM
One of my clients switches a modem from one machine to the other
when they go home at night, in order to fire up PCAnywhere from
their workstation. During the day, the same modem serves as
one of the modems on a modem pool on a Netware Light file server.
In the morning, they need to be reminded to flip the switch,
and reload the modem sharing software. This program is called
in their batch file menu to remind them to do so.
This will detect a modem that is plugged into the pc whether it
is turned on or not! If your switch is non-shorting, that is,
all the pins are left open on the pc cable that is switched off,
this should detect it. If your switch does something
fancy, then this program may not work.
These programs detect whether CD, RI, DSR, AND CTS are either ALL
OFF or ALL ON. If your modem presently sits in one of those states
normally (I can't see how) then the program will think there is no
modem there. For some reason, when my 16550AN uart which is hooked
up to my turned off PPI14400fxsa, the computer sees CD, RI, DSR
and CTS as all on. When I yank the cable, the computer sees them
as all off.
The Errorlevels are:
0 - No Modem connected to that port
1 - A Modem is connected to that port
2 - That port is not detected, no response at all on that port